@import '~antd/es/style/themes/default.less';

html {
  overflow: hidden;
}
html,
body,
#root {
  height: 100%;
}

.colorWeak {
  filter: invert(80%);
}

.ant-layout {
  min-height: 100vh;
}
.ant-pro-sider.ant-layout-sider.ant-pro-sider-fixed {
  left: unset;
}

canvas {
  display: block;
}

body {
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

ul,
ol {
  list-style: none;
}

@media (max-width: @screen-xs) {
  .ant-table {
    width: 100%;
    overflow-x: auto;
    &-thead > tr,
    &-tbody > tr {
      > th,
      > td {
        white-space: pre;
        > span {
          display: block;
        }
      }
    }
  }
}

// Compatible with IE11
@media screen and(-ms-high-contrast: active), (-ms-high-contrast: none) {
  body .ant-design-pro > .ant-layout {
    min-height: 100vh;
  }
}

.gwrap {
  padding: 60px;
  background-color: #fff;
}

.ant-pro-menu-item-link {
  display: block;
}

.star {
  display: inline-block;
  margin-right: 4px;
  color: #ff4d4f;
  font-size: 14px;
  font-family: SimSun, sans-serif;
  font-style: normal;
  line-height: 1;
}

.g-labelStyle {
  .ant-form-item-label label::before {
    display: inline-block;
    margin-right: 4px;
    color: #ff4d4f;
    font-size: 14px;
    font-family: SimSun, sans-serif;
    line-height: 1;
    content: '*';
  }
}
/*-- 新增2021-10-28 --*/
/* 滚动条 */
::-webkit-scrollbar {
  width: 8px;
  height: 6px;
}
::-webkit-scrollbar-thumb {
  background: rgba(50, 50, 50, 0.5);
  border-radius: 4px;
}
::-webkit-scrollbar-track {
  background: #eee;
  border-radius: 4px;
}
::-webkit-scrollbar-button {
  display: none;
}

.fromInput {
  .ant-form-item-label {
    width: 120px;
    vertical-align: top;
  }
  .ant-form-item {
    margin-bottom: 18px;
  }
  .ant-form-item-with-help {
    margin-bottom: 0px;
  }
  .twoInput {
    .ant-form-item {
      display: inline-block;
      width: 50%;
    }
    .ant-form-item-control {
      display: inline-block;
      width: calc(100% - 120px);
    }
  }
  .threeInput {
    .ant-form-item {
      display: inline-block;
      width: 33.33%;
    }
    .ant-form-item-control {
      display: inline-block;
      width: calc(100% - 120px);
    }
  }
}
.ant-pro-table-search {
  margin-bottom: 16px;
  padding: 24px;
  padding-bottom: 0;
  background: #fff;
}
.g-searchBox {
  position: relative;
  margin-bottom: 16px;
  padding: 24px;
  background-color: #fff;
  .btnBox {
    position: absolute;
    top: 24px;
    right: 24px;
    button {
      margin-left: 10px;
    }
  }
}
.ant-input[disabled],
input[disabled] {
  color: #666;
}
.ant-table.ant-table-middle .ant-table-tbody .ant-table-row-level-1,
.ant-table-tbody .ant-table-row-level-1 {
  td {
    padding: 5px 16px;
  }
  td:nth-child(1) {
    padding-left: 40px;
  }
}

.ant-table.ant-table-middle .ant-table-tbody .ant-table-row-level-2,
.ant-table-tbody .ant-table-row-level-2 {
  td {
    padding: 5px 16px;
  }
  td:nth-child(1) {
    padding-left: 80px;
  }
}
.ant-table.ant-table-middle .ant-table-tbody .ant-table-row-level-3,
.ant-table-tbody .ant-table-row-level-3 {
  td {
    padding: 5px 16px;
  }
  td:nth-child(1) {
    padding-left: 120px;
  }
}

.ant-table.ant-table-middle .ant-table-tbody .ant-table-row-level-4,
.ant-table-tbody .ant-table-row-level-4 {
  td {
    padding: 5px 16px;
  }
  td:nth-child(1) {
    padding-left: 160px;
  }
}

.ant-table.ant-table-middle .ant-table-tbody .ant-table-row-level-5,
.ant-table-tbody .ant-table-row-level-5 {
  td {
    padding: 5px 16px;
  }
  td:nth-child(1) {
    padding-left: 200px;
  }
}

.g-noData {
  min-height: 500px;
}
